﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DotNetX
{
    /// <summary>
    /// A language in a country
    /// </summary>
    public class LanguageInCountry
    {
        /// <summary>
        /// The language
        /// </summary>
        public Language Language
        {
            get
            {
                // return the langauge
                return this._language;
            }
            set
            {
                // set the language
                this._language = value;
            }
        }
        private Language _language = null;

        /// <summary>
        /// The country
        /// </summary>
        public Country Country
        {
            get
            {
                // return the country
                return this._country;
            }
            set
            {
                // set the country
                this._country = value;
            }
        }
        private Country _country = null;

        public LanguageInCountry(Language language, Country country)
        {
            if (language == null)
                throw new ArgumentNullException("'language' is null.");
            if (country == null)
                throw new ArgumentNullException("'country' is null.");

            // set the values
            this._language = language;
            this._country = country;
        }
    }
}
